package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.List;

public class AllPurposeExtendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AllPurposeExtendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRecordidIsNull() {
            addCriterion("RecordID is null");
            return (Criteria) this;
        }

        public Criteria andRecordidIsNotNull() {
            addCriterion("RecordID is not null");
            return (Criteria) this;
        }

        public Criteria andRecordidEqualTo(String value) {
            addCriterion("RecordID =", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotEqualTo(String value) {
            addCriterion("RecordID <>", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThan(String value) {
            addCriterion("RecordID >", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThanOrEqualTo(String value) {
            addCriterion("RecordID >=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThan(String value) {
            addCriterion("RecordID <", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThanOrEqualTo(String value) {
            addCriterion("RecordID <=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLike(String value) {
            addCriterion("RecordID like", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotLike(String value) {
            addCriterion("RecordID not like", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidIn(List<String> values) {
            addCriterion("RecordID in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotIn(List<String> values) {
            addCriterion("RecordID not in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidBetween(String value1, String value2) {
            addCriterion("RecordID between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotBetween(String value1, String value2) {
            addCriterion("RecordID not between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andTablenameIsNull() {
            addCriterion("TableName is null");
            return (Criteria) this;
        }

        public Criteria andTablenameIsNotNull() {
            addCriterion("TableName is not null");
            return (Criteria) this;
        }

        public Criteria andTablenameEqualTo(String value) {
            addCriterion("TableName =", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotEqualTo(String value) {
            addCriterion("TableName <>", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameGreaterThan(String value) {
            addCriterion("TableName >", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameGreaterThanOrEqualTo(String value) {
            addCriterion("TableName >=", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLessThan(String value) {
            addCriterion("TableName <", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLessThanOrEqualTo(String value) {
            addCriterion("TableName <=", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLike(String value) {
            addCriterion("TableName like", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotLike(String value) {
            addCriterion("TableName not like", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameIn(List<String> values) {
            addCriterion("TableName in", values, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotIn(List<String> values) {
            addCriterion("TableName not in", values, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameBetween(String value1, String value2) {
            addCriterion("TableName between", value1, value2, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotBetween(String value1, String value2) {
            addCriterion("TableName not between", value1, value2, "tablename");
            return (Criteria) this;
        }

        public Criteria andFilednameIsNull() {
            addCriterion("FiledName is null");
            return (Criteria) this;
        }

        public Criteria andFilednameIsNotNull() {
            addCriterion("FiledName is not null");
            return (Criteria) this;
        }

        public Criteria andFilednameEqualTo(String value) {
            addCriterion("FiledName =", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameNotEqualTo(String value) {
            addCriterion("FiledName <>", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameGreaterThan(String value) {
            addCriterion("FiledName >", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameGreaterThanOrEqualTo(String value) {
            addCriterion("FiledName >=", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameLessThan(String value) {
            addCriterion("FiledName <", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameLessThanOrEqualTo(String value) {
            addCriterion("FiledName <=", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameLike(String value) {
            addCriterion("FiledName like", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameNotLike(String value) {
            addCriterion("FiledName not like", value, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameIn(List<String> values) {
            addCriterion("FiledName in", values, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameNotIn(List<String> values) {
            addCriterion("FiledName not in", values, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameBetween(String value1, String value2) {
            addCriterion("FiledName between", value1, value2, "filedname");
            return (Criteria) this;
        }

        public Criteria andFilednameNotBetween(String value1, String value2) {
            addCriterion("FiledName not between", value1, value2, "filedname");
            return (Criteria) this;
        }

        public Criteria andFielddescIsNull() {
            addCriterion("FieldDesc is null");
            return (Criteria) this;
        }

        public Criteria andFielddescIsNotNull() {
            addCriterion("FieldDesc is not null");
            return (Criteria) this;
        }

        public Criteria andFielddescEqualTo(String value) {
            addCriterion("FieldDesc =", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescNotEqualTo(String value) {
            addCriterion("FieldDesc <>", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescGreaterThan(String value) {
            addCriterion("FieldDesc >", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescGreaterThanOrEqualTo(String value) {
            addCriterion("FieldDesc >=", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescLessThan(String value) {
            addCriterion("FieldDesc <", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescLessThanOrEqualTo(String value) {
            addCriterion("FieldDesc <=", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescLike(String value) {
            addCriterion("FieldDesc like", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescNotLike(String value) {
            addCriterion("FieldDesc not like", value, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescIn(List<String> values) {
            addCriterion("FieldDesc in", values, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescNotIn(List<String> values) {
            addCriterion("FieldDesc not in", values, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescBetween(String value1, String value2) {
            addCriterion("FieldDesc between", value1, value2, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFielddescNotBetween(String value1, String value2) {
            addCriterion("FieldDesc not between", value1, value2, "fielddesc");
            return (Criteria) this;
        }

        public Criteria andFieldvalIsNull() {
            addCriterion("FieldVal is null");
            return (Criteria) this;
        }

        public Criteria andFieldvalIsNotNull() {
            addCriterion("FieldVal is not null");
            return (Criteria) this;
        }

        public Criteria andFieldvalEqualTo(String value) {
            addCriterion("FieldVal =", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalNotEqualTo(String value) {
            addCriterion("FieldVal <>", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalGreaterThan(String value) {
            addCriterion("FieldVal >", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalGreaterThanOrEqualTo(String value) {
            addCriterion("FieldVal >=", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalLessThan(String value) {
            addCriterion("FieldVal <", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalLessThanOrEqualTo(String value) {
            addCriterion("FieldVal <=", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalLike(String value) {
            addCriterion("FieldVal like", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalNotLike(String value) {
            addCriterion("FieldVal not like", value, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalIn(List<String> values) {
            addCriterion("FieldVal in", values, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalNotIn(List<String> values) {
            addCriterion("FieldVal not in", values, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalBetween(String value1, String value2) {
            addCriterion("FieldVal between", value1, value2, "fieldval");
            return (Criteria) this;
        }

        public Criteria andFieldvalNotBetween(String value1, String value2) {
            addCriterion("FieldVal not between", value1, value2, "fieldval");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}